package com.crh.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author Chrui
 * @date 2018/10/11__9:18
 */
@Component
public class Doc implements Serializable {


    private static final long serialVersionUID = 8226026498622670453L;


    /**
     * 文档id
     */
    private Integer docId;

    /**
     * 文档名称
     */
    private String docName;

    /**
     * 文档的路径
     */
    private String docPath;

    /**
     * 下载的积分
     */
    private Integer downloadScore;

    /**
     * 上传的时间,将时间搞成tochar()，
     */
    private String uploadTime;

    /**
     * 文档的简介
     */
    private String docContent;

    /**
     * 作者的id（上传者）
     */
    private Integer userId;
    @Autowired
    private Users authorUsers;
    /**
     * 上传类型
     */
    private String docType;
    /**
     * 上传文档数
     */
    private String docCount;

    public Doc() {
    }

    public Doc(Integer docId, String docName, String docPath, Integer downloadScore, String uploadTime, String docContent, Integer userId, Users authorUsers, String docType, String docCount) {
        this.docId = docId;
        this.docName = docName;
        this.docPath = docPath;
        this.downloadScore = downloadScore;
        this.uploadTime = uploadTime;
        this.docContent = docContent;
        this.userId = userId;
        this.authorUsers = authorUsers;
        this.docType = docType;
        this.docCount = docCount;
    }

    public Integer getDocId() {
        return docId;
    }

    public void setDocId(Integer docId) {
        this.docId = docId;
    }

    public String getDocName() {
        return docName;
    }

    public void setDocName(String docName) {
        this.docName = docName;
    }

    public String getDocPath() {
        return docPath;
    }

    public void setDocPath(String docPath) {
        this.docPath = docPath;
    }

    public Integer getDownloadScore() {
        return downloadScore;
    }

    public void setDownloadScore(Integer downloadScore) {
        this.downloadScore = downloadScore;
    }

    public String getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(String uploadTime) {
        this.uploadTime = uploadTime;
    }

    public String getDocContent() {
        return docContent;
    }

    public void setDocContent(String docContent) {
        this.docContent = docContent;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Users getAuthorUsers() {
        return authorUsers;
    }

    public void setAuthorUsers(Users authorUsers) {
        this.authorUsers = authorUsers;
    }

    public String getDocType() {
        return docType;
    }

    public void setDocType(String docType) {
        this.docType = docType;
    }

    public String getDocCount() {
        return docCount;
    }

    public void setDocCount(String docCount) {
        this.docCount = docCount;
    }
}
